#ifndef COCONUT_H
#define COCONUT_H

#include "worldobject.h"
#include <QString>
#include <vector>

class Coconut : public WorldObject
{
private:
    PlayerType owner; // 0 if coconut was shot by left player (host), 1 otherwise

    void initialize(PlayerType initOwner, int yPos);

public:
    Coconut();
    Coconut(PlayerType initOwner, int yPos);

    // updates the coconut's position in world
    void updatePosition();

    void nextImage();

    // accessors
    PlayerType getOwner() { return owner; }

    ~Coconut();
};

#endif // COCONUT_H
